package com.wzu.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

@TableName("policy")
public class Policy implements Serializable {
    @TableId
    private Integer id; // 主键
    private String year; // 年份
    private Double max; // 封顶线
    private Double percentage; // 报销比例

    public Policy() {}
    public Policy(Integer id, String year, Double max, Double percentage) {
        this.id = id;
        this.year = year;
        this.max = max;
        this.percentage = percentage;
    }
    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }
    public String getYear() { return year; }
    public void setYear(String year) { this.year = year; }
    public Double getMax() { return max; }
    public void setMax(Double max) { this.max = max; }
    public Double getPercentage() { return percentage; }
    public void setPercentage(Double percentage) { this.percentage = percentage; }
    @Override
    public String toString() {
        return "Policy{" +
                "id=" + id +
                ", year='" + year + '\'' +
                ", max=" + max +
                ", percentage=" + percentage +
                '}';
    }
} 